package com.example.springboot.mapper;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.controller.request.LoginRequest;
import com.example.springboot.controller.request.UserPageRequest;
import com.example.springboot.entity.Room;
import com.example.springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    //   @Select("select * from user")
    List<User> list();

    List<User> listByCondition(BaseRequest baseRequest);


    User getById(String stdid);

    void updateById(User user);

    User getByUsername(LoginRequest request);
}
